package myky.com.doctorapp.model;

import com.xiangyao.train.utils.RxScedulerHelper;

import io.reactivex.Observable;
import myky.com.doctorapp.api.ApiManager;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.contract.MyConsultContract;
import myky.com.doctorapp.entity.MyConsultEntity;

public class MyConsultModel implements MyConsultContract.Model {
    @Override
    public Observable<BaseEntity<MyConsultEntity>> findMyConsult(int startPage, int endPage) {


        return ApiManager.getApistore().findMyConsult(startPage, endPage).compose(RxScedulerHelper.INSTANCE.io_main());
    }
}
